package com.asset.dispoal.business.repayment.api;

import com.asset.dispoal.business.casedispose.dto.CaseDisposePageResponse;
import com.asset.dispoal.business.repayment.dto.RepaymentInfoResponse;
import com.asset.dispoal.business.repayment.dto.RepaymentRequest;
import tech.mhuang.pacebox.springboot.protocol.Result;
import tech.mhuang.pacebox.springboot.protocol.data.PageVO;

/**
 * @description: 还款管理服务
 * @author: yf
 * @date: 2022-09-26 14:35:33
 */
public interface RepaymentService {

    /**
     * 还款管理列表查询
     *
     * @param request
     * @return
     */
    Result<PageVO<CaseDisposePageResponse>> queryPage(RepaymentRequest request);

    /**
     * 根据案件id获取案件还款信息集合
     *
     * @param caseId
     * @return
     */
    Result<RepaymentInfoResponse> getRepayInfoByCaseId(String caseId);

    /**
     * 公式选择罚息计算接口
     *
     * @param caseId           案件id
     * @param batchParameterId 种类罚息规则id
     * @return
     */
    Result getPenaltyInterestByFormular(String caseId, String batchParameterId);
}
